package hoang.hut.libs;

import hoang.hut.root.ExecShell;
import hoang.hut.root.ExecShell.SHELL_CMD;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		findViewById(R.id.bt_reboot).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				new ExecShell().executeCommand(SHELL_CMD.reboot);
			}
		});
		
	}

}
